package com.qianhai.news.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "ARTICLE")
public class Article {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "article_uuid")
    private String articleUuid;

    @Column(name = "user_uuid")
    private String userUuid;

    @Column(name = "articletype_uuid")
    private String articletypeUuid;

    @Column(name = "article_title")
    private String articleTitle;

    @Column(name = "article_state")
    private Integer articleState;

    @Column(name = "article_createTime")
    private String articleCreatetime;

    @Column(name = "article_keyword")
    private String articleKeyword;

    @Column(name = "article_language")
    private String articleLanguage;

    @Column(name = "article_code")
    private String articleCode;

    @Column(name = "type_code")
    private String typeCode;

    @Column(name = "index1")
    private String index1;

    @Column(name = "index2")
    private String index2;

    @Column(name = "article_content")
    private String articleContent;
    
    private String allMenu;
    
    private Article upArticle;
    
    private Article downArticle;
    
    private String ptitle;
    
    
    
    
    
    public String getPtitle()
	{
		return ptitle;
	}

	public void setPtitle(String ptitle)
	{
		this.ptitle = ptitle;
	}

	public Article getUpArticle()
	{
		return upArticle;
	}

	public void setUpArticle(Article upArticle)
	{
		this.upArticle = upArticle;
	}

	public Article getDownArticle()
	{
		return downArticle;
	}

	public void setDownArticle(Article downArticle)
	{
		this.downArticle = downArticle;
	}

	public String getAllMenu()
	{
		return allMenu;
	}

	public void setAllMenu(String allMenu)
	{
		this.allMenu = allMenu;
	}

	public String getArticleUuid() {
        return articleUuid;
    }

    public void setArticleUuid(String articleUuid) {
        this.articleUuid = articleUuid == null ? null : articleUuid.trim();
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid == null ? null : userUuid.trim();
    }

    public String getArticletypeUuid() {
        return articletypeUuid;
    }

    public void setArticletypeUuid(String articletypeUuid) {
        this.articletypeUuid = articletypeUuid == null ? null : articletypeUuid.trim();
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle == null ? null : articleTitle.trim();
    }

    public Integer getArticleState() {
        return articleState;
    }

    public void setArticleState(Integer articleState) {
        this.articleState = articleState;
    }

    public String getArticleCreatetime() {
        return articleCreatetime;
    }

    public void setArticleCreatetime(String articleCreatetime) {
        this.articleCreatetime = articleCreatetime == null ? null : articleCreatetime.trim();
    }

    public String getArticleKeyword() {
        return articleKeyword;
    }

    public void setArticleKeyword(String articleKeyword) {
        this.articleKeyword = articleKeyword == null ? null : articleKeyword.trim();
    }

    public String getArticleLanguage() {
        return articleLanguage;
    }

    public void setArticleLanguage(String articleLanguage) {
        this.articleLanguage = articleLanguage == null ? null : articleLanguage.trim();
    }

    public String getArticleCode() {
        return articleCode;
    }

    public void setArticleCode(String articleCode) {
        this.articleCode = articleCode == null ? null : articleCode.trim();
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode == null ? null : typeCode.trim();
    }

    public String getIndex1() {
        return index1;
    }

    public void setIndex1(String index1) {
        this.index1 = index1 == null ? null : index1.trim();
    }

    public String getIndex2() {
        return index2;
    }

    public void setIndex2(String index2) {
        this.index2 = index2 == null ? null : index2.trim();
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent == null ? null : articleContent.trim();
    }
}